<?php if (!defined('THINK_PATH')) exit();?><!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <link rel="stylesheet" type="text/css" href="/wegame/Public/css/admin/login.css">
    <link rel="stylesheet" href="/wegame/Public/css/admin/dashicons.css">

    <title>管理系统</title>
    <script type="text/javascript">
        function zc() {
            var username = document.getElementById("username").value;
            var pwd = document.getElementById("password").value;
            document.getElementById("myform").action = "/wegame/index.php/Admin/Zc/add/username/"+username +
                "/passeord/" + pwd;//向UserController控制器下的add方法传递数值
            document.getElementById("myform").submit();
        }
        function show(sx) {
            sx.src="/wegame/index.php/Admin/Common/verify"
        }
    </script>
</head>

<body>

<div id="login-wrapper">
    
    <form id="myform" action="/wegame/index.php/Admin/Login/login" method="post">
        <div>
        <div class="user">
            <span>用户名：</span>
            <input type="text" style="border-radius:9px;" name="username" id="username">
        </div>
        <div class="mm">
            <span>密&nbsp;&nbsp;&nbsp;码：</span>
            <input type="password" style="border-radius:9px;" name="password" id="password">
        </div>
        <div class="item">
            <label><span>验证码</span>：
                <input name="verify" style="border-radius:9px;" type="text" id="verify">
            </label>
        </div>
        <div id="codeimg">
            <img src="/wegame/index.php/Admin/Common/verify" onClick="show(this)"/>
        </div>
        <div id="btn">
            <button type="submit" >登录</button>
            <button onclick="zc()">注册</button>
        </div>
        </div>
    </form>

</div>
</body>
</html>